package com.lllteam.exam.account.library.network

import com.lllteam.exam.account.library.model.RegisterBean
import com.lllteam.exam.account.library.model.UserInfo
import io.reactivex.Single
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
import java.util.HashMap

interface Api {
    @POST("/user/android/register")
    fun register(@Body body: HashMap<String, String>): Single<BaseBean<RegisterBean>>

    @POST("/user/android/verify_code")
    fun verifyCode(@Body body: HashMap<String, String>): Single<BaseBean<RegisterBean>>

    @POST("/app/android/register")
    fun modifyRegister(@Body body: HashMap<String, String>): Single<BaseBean<RegisterBean>>

    @POST("https://app.csatexams.com/android/user/seqID/{seqID}")
    fun  getUser(@Path("seqID") seqID: String): Single<BaseBean<UserInfo>>
}